3.200 \(\int \cot (c+d x) (a+i a \tan (c+d x))^{2/3} (A+B \tan (c+d x)) \, dx\)
Optimal. Leaf size=289 \[ -\frac {\sqrt {3} a^{2/3} (A-i B) \tan ^{-1}\left (\frac {\sqrt [3]{a}+2^{2/3} \sqrt [3]{a+i a \tan (c+d x)}}{\sqrt {3} \sqrt [3]{a}}\right )}{\sqrt [3]{2} d}-\frac {3 a^{2/3} (A-i B) \log \left (\sqrt [3]{2} \sqrt [3]{a}-\sqrt [3]{a+i a \tan (c+d x)}\right )}{2 \sqrt [3]{2} d}-\frac {a^{2/3} (A-i B) \log (\cos (c+d x))}{2 \sqrt [3]{2} d}-\frac {a^{2/3} x (B+i A)}{2 \sqrt [3]{2}}+\frac {\sqrt {3} a^{2/3} A \tan ^{-1}\left (\frac {\sqrt [3]{a}+2 \sqrt [3]{a+i a \tan (c+d x)}}{\sqrt {3} \sqrt [3]{a}}\right )}{d}-\frac {a^{2/3} A \log (\tan (c+d x))}{2 d}+\frac {3 a^{2/3} A \log \left (\sqrt [3]{a}-\sqrt [3]{a+i a \tan (c+d x)}\right )}{2 d} \]
[Out]
-1/4*a^(2/3)*(I*A+B)*x*2^(2/3)-1/4*a^(2/3)*(A-I*B)*ln(cos(d*x+c))*2^(2/3)/d-1/2*a^(2/3)*A*ln(tan(d*x+c))/d+3/2
*a^(2/3)*A*ln(a^(1/3)-(a+I*a*tan(d*x+c))^(1/3))/d-3/4*a^(2/3)*(A-I*B)*ln(2^(1/3)*a^(1/3)-(a+I*a*tan(d*x+c))^(1
/3))*2^(2/3)/d+a^(2/3)*A*arctan(1/3*(a^(1/3)+2*(a+I*a*tan(d*x+c))^(1/3))/a^(1/3)*3^(1/2))*3^(1/2)/d-1/2*a^(2/3
)*(A-I*B)*arctan(1/3*(a^(1/3)+2^(2/3)*(a+I*a*tan(d*x+c))^(1/3))/a^(1/3)*3^(1/2))*3^(1/2)*2^(2/3)/d
________________________________________________________________________________________
Rubi [A] time = 0.37, antiderivative size = 289, normalized size of antiderivative = 1.00,
number of steps used = 11, number of rules used = 7, integrand size = 34, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.206, Rules used
= {3600, 3481, 55, 617, 204, 31, 3599} \[ -\frac {\sqrt {3} a^{2/3} (A-i B) \tan ^{-1}\left (\frac {\sqrt [3]{a}+2^{2/3} \sqrt [3]{a+i a \tan (c+d x)}}{\sqrt {3} \sqrt [3]{a}}\right )}{\sqrt [3]{2} d}-\frac {3 a^{2/3} (A-i B) \log \left (\sqrt [3]{2} \sqrt [3]{a}-\sqrt [3]{a+i a \tan (c+d x)}\right )}{2 \sqrt [3]{2} d}-\frac {a^{2/3} (A-i B) \log (\cos (c+d x))}{2 \sqrt [3]{2} d}-\frac {a^{2/3} x (B+i A)}{2 \sqrt [3]{2}}+\frac {\sqrt {3} a^{2/3} A \tan ^{-1}\left (\frac {\sqrt [3]{a}+2 \sqrt [3]{a+i a \tan (c+d x)}}{\sqrt {3} \sqrt [3]{a}}\right )}{d}-\frac {a^{2/3} A \log (\tan (c+d x))}{2 d}+\frac {3 a^{2/3} A \log \left (\sqrt [3]{a}-\sqrt [3]{a+i a \tan (c+d x)}\right )}{2 d} \]
Antiderivative was successfully verified.
[In]
Int[Cot[c + d*x]*(a + I*a*Tan[c + d*x])^(2/3)*(A + B*Tan[c + d*x]),x]
[Out]
-(a^(2/3)*(I*A + B)*x)/(2*2^(1/3)) + (Sqrt[3]*a^(2/3)*A*ArcTan[(a^(1/3) + 2*(a + I*a*Tan[c + d*x])^(1/3))/(Sqr
t[3]*a^(1/3))])/d - (Sqrt[3]*a^(2/3)*(A - I*B)*ArcTan[(a^(1/3) + 2^(2/3)*(a + I*a*Tan[c + d*x])^(1/3))/(Sqrt[3
]*a^(1/3))])/(2^(1/3)*d) - (a^(2/3)*(A - I*B)*Log[Cos[c + d*x]])/(2*2^(1/3)*d) - (a^(2/3)*A*Log[Tan[c + d*x]])
/(2*d) + (3*a^(2/3)*A*Log[a^(1/3) - (a + I*a*Tan[c + d*x])^(1/3)])/(2*d) - (3*a^(2/3)*(A - I*B)*Log[2^(1/3)*a^
(1/3) - (a + I*a*Tan[c + d*x])^(1/3)])/(2*2^(1/3)*d)
Rule 31
Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]
Rule 55
Int[1/(((a_.) + (b_.)*(x_))*((c_.) + (d_.)*(x_))^(1/3)), x_Symbol] :> With[{q = Rt[(b*c - a*d)/b, 3]}, -Simp[L
og[RemoveContent[a + b*x, x]]/(2*b*q), x] + (Dist[3/(2*b), Subst[Int[1/(q^2 + q*x + x^2), x], x, (c + d*x)^(1/
3)], x] - Dist[3/(2*b*q), Subst[Int[1/(q - x), x], x, (c + d*x)^(1/3)], x])] /; FreeQ[{a, b, c, d}, x] && PosQ
[(b*c - a*d)/b]
Rule 204
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> -Simp[ArcTan[(Rt[-b, 2]*x)/Rt[-a, 2]]/(Rt[-a, 2]*Rt[-b, 2]), x] /
; FreeQ[{a, b}, x] && PosQ[a/b] && (LtQ[a, 0] || LtQ[b, 0])
Rule 617
Int[((a_) + (b_.)*(x_) + (c_.)*(x_)^2)^(-1), x_Symbol] :> With[{q = 1 - 4*Simplify[(a*c)/b^2]}, Dist[-2/b, Sub
st[Int[1/(q - x^2), x], x, 1 + (2*c*x)/b], x] /; RationalQ[q] && (EqQ[q^2, 1] || !RationalQ[b^2 - 4*a*c])] /;
FreeQ[{a, b, c}, x] && NeQ[b^2 - 4*a*c, 0]
Rule 3481
Int[((a_) + (b_.)*tan[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> -Dist[b/d, Subst[Int[(a + x)^(n - 1)/(a - x), x]
, x, b*Tan[c + d*x]], x] /; FreeQ[{a, b, c, d, n}, x] && EqQ[a^2 + b^2, 0]
Rule 3599
Int[((a_) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(m_)*((A_.) + (B_.)*tan[(e_.) + (f_.)*(x_)])*((c_.) + (d_.)*tan[(e_
.) + (f_.)*(x_)])^(n_), x_Symbol] :> Dist[(b*B)/f, Subst[Int[(a + b*x)^(m - 1)*(c + d*x)^n, x], x, Tan[e + f*x
]], x] /; FreeQ[{a, b, c, d, e, f, A, B, m, n}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 + b^2, 0] && EqQ[A*b + a*B,
0]
Rule 3600
Int[(((a_) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(m_)*((A_.) + (B_.)*tan[(e_.) + (f_.)*(x_)]))/((c_.) + (d_.)*tan[(
e_.) + (f_.)*(x_)]), x_Symbol] :> Dist[(A*b + a*B)/(b*c + a*d), Int[(a + b*Tan[e + f*x])^m, x], x] - Dist[(B*c
- A*d)/(b*c + a*d), Int[((a + b*Tan[e + f*x])^m*(a - b*Tan[e + f*x]))/(c + d*Tan[e + f*x]), x], x] /; FreeQ[{
a, b, c, d, e, f, A, B, m}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 + b^2, 0] && NeQ[A*b + a*B, 0]
Rubi steps
\begin {align*} \int \cot (c+d x) (a+i a \tan (c+d x))^{2/3} (A+B \tan (c+d x)) \, dx &=\frac {A \int \cot (c+d x) (a-i a \tan (c+d x)) (a+i a \tan (c+d x))^{2/3} \, dx}{a}+(i A+B) \int (a+i a \tan (c+d x))^{2/3} \, dx\\ &=\frac {(a A) \operatorname {Subst}\left (\int \frac {1}{x \sqrt [3]{a+i a x}} \, dx,x,\tan (c+d x)\right )}{d}+\frac {(a (A-i B)) \operatorname {Subst}\left (\int \frac {1}{(a-x) \sqrt [3]{a+x}} \, dx,x,i a \tan (c+d x)\right )}{d}\\ &=-\frac {a^{2/3} (i A+B) x}{2 \sqrt [3]{2}}-\frac {a^{2/3} (A-i B) \log (\cos (c+d x))}{2 \sqrt [3]{2} d}-\frac {a^{2/3} A \log (\tan (c+d x))}{2 d}-\frac {\left (3 a^{2/3} A\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt [3]{a}-x} \, dx,x,\sqrt [3]{a+i a \tan (c+d x)}\right )}{2 d}+\frac {(3 a A) \operatorname {Subst}\left (\int \frac {1}{a^{2/3}+\sqrt [3]{a} x+x^2} \, dx,x,\sqrt [3]{a+i a \tan (c+d x)}\right )}{2 d}+\frac {\left (3 a^{2/3} (A-i B)\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt [3]{2} \sqrt [3]{a}-x} \, dx,x,\sqrt [3]{a+i a \tan (c+d x)}\right )}{2 \sqrt [3]{2} d}-\frac {(3 a (A-i B)) \operatorname {Subst}\left (\int \frac {1}{2^{2/3} a^{2/3}+\sqrt [3]{2} \sqrt [3]{a} x+x^2} \, dx,x,\sqrt [3]{a+i a \tan (c+d x)}\right )}{2 d}\\ &=-\frac {a^{2/3} (i A+B) x}{2 \sqrt [3]{2}}-\frac {a^{2/3} (A-i B) \log (\cos (c+d x))}{2 \sqrt [3]{2} d}-\frac {a^{2/3} A \log (\tan (c+d x))}{2 d}+\frac {3 a^{2/3} A \log \left (\sqrt [3]{a}-\sqrt [3]{a+i a \tan (c+d x)}\right )}{2 d}-\frac {3 a^{2/3} (A-i B) \log \left (\sqrt [3]{2} \sqrt [3]{a}-\sqrt [3]{a+i a \tan (c+d x)}\right )}{2 \sqrt [3]{2} d}-\frac {\left (3 a^{2/3} A\right ) \operatorname {Subst}\left (\int \frac {1}{-3-x^2} \, dx,x,1+\frac {2 \sqrt [3]{a+i a \tan (c+d x)}}{\sqrt [3]{a}}\right )}{d}+\frac {\left (3 a^{2/3} (A-i B)\right ) \operatorname {Subst}\left (\int \frac {1}{-3-x^2} \, dx,x,1+\frac {2^{2/3} \sqrt [3]{a+i a \tan (c+d x)}}{\sqrt [3]{a}}\right )}{\sqrt [3]{2} d}\\ &=-\frac {a^{2/3} (i A+B) x}{2 \sqrt [3]{2}}+\frac {\sqrt {3} a^{2/3} A \tan ^{-1}\left (\frac {1+\frac {2 \sqrt [3]{a+i a \tan (c+d x)}}{\sqrt [3]{a}}}{\sqrt {3}}\right )}{d}-\frac {\sqrt {3} a^{2/3} (A-i B) \tan ^{-1}\left (\frac {1+\frac {2^{2/3} \sqrt [3]{a+i a \tan (c+d x)}}{\sqrt [3]{a}}}{\sqrt {3}}\right )}{\sqrt [3]{2} d}-\frac {a^{2/3} (A-i B) \log (\cos (c+d x))}{2 \sqrt [3]{2} d}-\frac {a^{2/3} A \log (\tan (c+d x))}{2 d}+\frac {3 a^{2/3} A \log \left (\sqrt [3]{a}-\sqrt [3]{a+i a \tan (c+d x)}\right )}{2 d}-\frac {3 a^{2/3} (A-i B) \log \left (\sqrt [3]{2} \sqrt [3]{a}-\sqrt [3]{a+i a \tan (c+d x)}\right )}{2 \sqrt [3]{2} d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 1.76, size = 127, normalized size = 0.44 \[ \frac {3 \left (\frac {a e^{2 i (c+d x)}}{1+e^{2 i (c+d x)}}\right )^{2/3} \left ((A-i B) \, _2F_1\left (\frac {2}{3},1;\frac {5}{3};\frac {e^{2 i (c+d x)}}{1+e^{2 i (c+d x)}}\right )-2 A \, _2F_1\left (\frac {2}{3},1;\frac {5}{3};\frac {2 e^{2 i (c+d x)}}{1+e^{2 i (c+d x)}}\right )\right )}{2 \sqrt [3]{2} d} \]
Antiderivative was successfully verified.
[In]
Integrate[Cot[c + d*x]*(a + I*a*Tan[c + d*x])^(2/3)*(A + B*Tan[c + d*x]),x]
[Out]
(3*((a*E^((2*I)*(c + d*x)))/(1 + E^((2*I)*(c + d*x))))^(2/3)*((A - I*B)*Hypergeometric2F1[2/3, 1, 5/3, E^((2*I
)*(c + d*x))/(1 + E^((2*I)*(c + d*x)))] - 2*A*Hypergeometric2F1[2/3, 1, 5/3, (2*E^((2*I)*(c + d*x)))/(1 + E^((
2*I)*(c + d*x)))]))/(2*2^(1/3)*d)
________________________________________________________________________________________
fricas [B] time = 0.68, size = 711, normalized size = 2.46 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate(cot(d*x+c)*(a+I*a*tan(d*x+c))^(2/3)*(A+B*tan(d*x+c)),x, algorithm="fricas")
[Out]
1/2*(1/2)^(1/3)*(-I*sqrt(3) - 1)*(-(A^3 - 3*I*A^2*B - 3*A*B^2 + I*B^3)*a^2/d^3)^(1/3)*log((2^(1/3)*(A^2 - 2*I*
A*B - B^2)*a*(a/(e^(2*I*d*x + 2*I*c) + 1))^(1/3)*e^(2/3*I*d*x + 2/3*I*c) - (1/2)^(2/3)*(I*sqrt(3)*d^2 - d^2)*(
-(A^3 - 3*I*A^2*B - 3*A*B^2 + I*B^3)*a^2/d^3)^(2/3))/((A^2 - 2*I*A*B - B^2)*a)) + 1/2*(1/2)^(1/3)*(I*sqrt(3) -
1)*(-(A^3 - 3*I*A^2*B - 3*A*B^2 + I*B^3)*a^2/d^3)^(1/3)*log((2^(1/3)*(A^2 - 2*I*A*B - B^2)*a*(a/(e^(2*I*d*x +
2*I*c) + 1))^(1/3)*e^(2/3*I*d*x + 2/3*I*c) - (1/2)^(2/3)*(-I*sqrt(3)*d^2 - d^2)*(-(A^3 - 3*I*A^2*B - 3*A*B^2
+ I*B^3)*a^2/d^3)^(2/3))/((A^2 - 2*I*A*B - B^2)*a)) + 1/2*(A^3*a^2/d^3)^(1/3)*(I*sqrt(3) - 1)*log(1/2*(2*2^(1/
3)*A^2*a*(a/(e^(2*I*d*x + 2*I*c) + 1))^(1/3)*e^(2/3*I*d*x + 2/3*I*c) + (I*sqrt(3)*d^2 + d^2)*(A^3*a^2/d^3)^(2/
3))/(A^2*a)) + 1/2*(A^3*a^2/d^3)^(1/3)*(-I*sqrt(3) - 1)*log(1/2*(2*2^(1/3)*A^2*a*(a/(e^(2*I*d*x + 2*I*c) + 1))
^(1/3)*e^(2/3*I*d*x + 2/3*I*c) + (-I*sqrt(3)*d^2 + d^2)*(A^3*a^2/d^3)^(2/3))/(A^2*a)) + (1/2)^(1/3)*(-(A^3 - 3
*I*A^2*B - 3*A*B^2 + I*B^3)*a^2/d^3)^(1/3)*log((2^(1/3)*(A^2 - 2*I*A*B - B^2)*a*(a/(e^(2*I*d*x + 2*I*c) + 1))^
(1/3)*e^(2/3*I*d*x + 2/3*I*c) - 2*(1/2)^(2/3)*d^2*(-(A^3 - 3*I*A^2*B - 3*A*B^2 + I*B^3)*a^2/d^3)^(2/3))/((A^2
- 2*I*A*B - B^2)*a)) + (A^3*a^2/d^3)^(1/3)*log((2^(1/3)*A^2*a*(a/(e^(2*I*d*x + 2*I*c) + 1))^(1/3)*e^(2/3*I*d*x
+ 2/3*I*c) - (A^3*a^2/d^3)^(2/3)*d^2)/(A^2*a))
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (B \tan \left (d x + c\right ) + A\right )} {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {2}{3}} \cot \left (d x + c\right )\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate(cot(d*x+c)*(a+I*a*tan(d*x+c))^(2/3)*(A+B*tan(d*x+c)),x, algorithm="giac")
[Out]
integrate((B*tan(d*x + c) + A)*(I*a*tan(d*x + c) + a)^(2/3)*cot(d*x + c), x)
________________________________________________________________________________________
maple [F] time = 1.27, size = 0, normalized size = 0.00 \[ \int \cot \left (d x +c \right ) \left (a +i a \tan \left (d x +c \right )\right )^{\frac {2}{3}} \left (A +B \tan \left (d x +c \right )\right )\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
int(cot(d*x+c)*(a+I*a*tan(d*x+c))^(2/3)*(A+B*tan(d*x+c)),x)
[Out]
int(cot(d*x+c)*(a+I*a*tan(d*x+c))^(2/3)*(A+B*tan(d*x+c)),x)
________________________________________________________________________________________
maxima [A] time = 0.44, size = 252, normalized size = 0.87 \[ -\frac {2 \, \sqrt {3} 2^{\frac {2}{3}} {\left (A - i \, B\right )} a^{\frac {2}{3}} \arctan \left (\frac {\sqrt {3} 2^{\frac {2}{3}} {\left (2^{\frac {1}{3}} a^{\frac {1}{3}} + 2 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {1}{3}}\right )}}{6 \, a^{\frac {1}{3}}}\right ) - 2^{\frac {2}{3}} {\left (A - i \, B\right )} a^{\frac {2}{3}} \log \left (2^{\frac {2}{3}} a^{\frac {2}{3}} + 2^{\frac {1}{3}} {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {1}{3}} a^{\frac {1}{3}} + {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {2}{3}}\right ) + 2 \cdot 2^{\frac {2}{3}} {\left (A - i \, B\right )} a^{\frac {2}{3}} \log \left (-2^{\frac {1}{3}} a^{\frac {1}{3}} + {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {1}{3}}\right ) - 4 \, \sqrt {3} A a^{\frac {2}{3}} \arctan \left (\frac {\sqrt {3} {\left (2 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {1}{3}} + a^{\frac {1}{3}}\right )}}{3 \, a^{\frac {1}{3}}}\right ) + 2 \, A a^{\frac {2}{3}} \log \left ({\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {2}{3}} + {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {1}{3}} a^{\frac {1}{3}} + a^{\frac {2}{3}}\right ) - 4 \, A a^{\frac {2}{3}} \log \left ({\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {1}{3}} - a^{\frac {1}{3}}\right )}{4 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate(cot(d*x+c)*(a+I*a*tan(d*x+c))^(2/3)*(A+B*tan(d*x+c)),x, algorithm="maxima")
[Out]
-1/4*(2*sqrt(3)*2^(2/3)*(A - I*B)*a^(2/3)*arctan(1/6*sqrt(3)*2^(2/3)*(2^(1/3)*a^(1/3) + 2*(I*a*tan(d*x + c) +
a)^(1/3))/a^(1/3)) - 2^(2/3)*(A - I*B)*a^(2/3)*log(2^(2/3)*a^(2/3) + 2^(1/3)*(I*a*tan(d*x + c) + a)^(1/3)*a^(1
/3) + (I*a*tan(d*x + c) + a)^(2/3)) + 2*2^(2/3)*(A - I*B)*a^(2/3)*log(-2^(1/3)*a^(1/3) + (I*a*tan(d*x + c) + a
)^(1/3)) - 4*sqrt(3)*A*a^(2/3)*arctan(1/3*sqrt(3)*(2*(I*a*tan(d*x + c) + a)^(1/3) + a^(1/3))/a^(1/3)) + 2*A*a^
(2/3)*log((I*a*tan(d*x + c) + a)^(2/3) + (I*a*tan(d*x + c) + a)^(1/3)*a^(1/3) + a^(2/3)) - 4*A*a^(2/3)*log((I*
a*tan(d*x + c) + a)^(1/3) - a^(1/3)))/d
________________________________________________________________________________________
mupad [B] time = 6.75, size = 1761, normalized size = 6.09 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
int(cot(c + d*x)*(A + B*tan(c + d*x))*(a + a*tan(c + d*x)*1i)^(2/3),x)
[Out]
log(- (486*d^3*(3*A*B^2*a^9 - B^3*a^9*1i + A^2*B*a^9*3i) - (1458*a^7*d^6*((A^3*a^2)/d^3)^(2/3) + 243*d*(a + a*
tan(c + d*x)*1i)^(1/3)*(B^2*a^8*d^3 - 5*A^2*a^8*d^3 + A*B*a^8*d^3*2i))*((A^3*a^2)/d^3)^(1/3))*((A^3*a^2)/d^3)^
(2/3) - 243*d*(a + a*tan(c + d*x)*1i)^(1/3)*(A^5*a^10 - A^4*B*a^10*4i + A^2*B^3*a^10*2i - 5*A^3*B^2*a^10))*((A
^3*a^2)/d^3)^(1/3) + log(- (486*d^3*(3*A*B^2*a^9 - B^3*a^9*1i + A^2*B*a^9*3i) - (1458*a^7*d^6*(-(A^3*a^2 + B^3
*a^2*1i - 3*A*B^2*a^2 - A^2*B*a^2*3i)/(2*d^3))^(2/3) + 243*d*(a + a*tan(c + d*x)*1i)^(1/3)*(B^2*a^8*d^3 - 5*A^
2*a^8*d^3 + A*B*a^8*d^3*2i))*(-(A^3*a^2 + B^3*a^2*1i - 3*A*B^2*a^2 - A^2*B*a^2*3i)/(2*d^3))^(1/3))*(-(A^3*a^2
+ B^3*a^2*1i - 3*A*B^2*a^2 - A^2*B*a^2*3i)/(2*d^3))^(2/3) - 243*d*(a + a*tan(c + d*x)*1i)^(1/3)*(A^5*a^10 - A^
4*B*a^10*4i + A^2*B^3*a^10*2i - 5*A^3*B^2*a^10))*(-(A^3*a^2 + B^3*a^2*1i - 3*A*B^2*a^2 - A^2*B*a^2*3i)/(2*d^3)
)^(1/3) + (log(- ((3^(1/2)*1i - 1)^2*(486*d^3*(3*A*B^2*a^9 - B^3*a^9*1i + A^2*B*a^9*3i) - ((3^(1/2)*1i - 1)*(2
43*d*(a + a*tan(c + d*x)*1i)^(1/3)*(B^2*a^8*d^3 - 5*A^2*a^8*d^3 + A*B*a^8*d^3*2i) + (729*a^7*d^6*(3^(1/2)*1i -
1)^2*((A^3*a^2)/d^3)^(2/3))/2)*((A^3*a^2)/d^3)^(1/3))/2)*((A^3*a^2)/d^3)^(2/3))/4 - 243*d*(a + a*tan(c + d*x)
*1i)^(1/3)*(A^5*a^10 - A^4*B*a^10*4i + A^2*B^3*a^10*2i - 5*A^3*B^2*a^10))*(3^(1/2)*1i - 1)*((A^3*a^2)/d^3)^(1/
3))/2 - (log(- ((3^(1/2)*1i + 1)^2*(486*d^3*(3*A*B^2*a^9 - B^3*a^9*1i + A^2*B*a^9*3i) + ((3^(1/2)*1i + 1)*(243
*d*(a + a*tan(c + d*x)*1i)^(1/3)*(B^2*a^8*d^3 - 5*A^2*a^8*d^3 + A*B*a^8*d^3*2i) + (729*a^7*d^6*(3^(1/2)*1i + 1
)^2*((A^3*a^2)/d^3)^(2/3))/2)*((A^3*a^2)/d^3)^(1/3))/2)*((A^3*a^2)/d^3)^(2/3))/4 - 243*d*(a + a*tan(c + d*x)*1
i)^(1/3)*(A^5*a^10 - A^4*B*a^10*4i + A^2*B^3*a^10*2i - 5*A^3*B^2*a^10))*(3^(1/2)*1i + 1)*((A^3*a^2)/d^3)^(1/3)
)/2 - log(- ((3^(1/2)*1i)/2 + 1/2)^2*(486*d^3*(3*A*B^2*a^9 - B^3*a^9*1i + A^2*B*a^9*3i) + (243*d*(a + a*tan(c
+ d*x)*1i)^(1/3)*(B^2*a^8*d^3 - 5*A^2*a^8*d^3 + A*B*a^8*d^3*2i) + 1458*a^7*d^6*((3^(1/2)*1i)/2 + 1/2)^2*(-(A^3
*a^2 + B^3*a^2*1i - 3*A*B^2*a^2 - A^2*B*a^2*3i)/(2*d^3))^(2/3))*((3^(1/2)*1i)/2 + 1/2)*(-(A^3*a^2 + B^3*a^2*1i
- 3*A*B^2*a^2 - A^2*B*a^2*3i)/(2*d^3))^(1/3))*(-(A^3*a^2 + B^3*a^2*1i - 3*A*B^2*a^2 - A^2*B*a^2*3i)/(2*d^3))^
(2/3) - 243*d*(a + a*tan(c + d*x)*1i)^(1/3)*(A^5*a^10 - A^4*B*a^10*4i + A^2*B^3*a^10*2i - 5*A^3*B^2*a^10))*((3
^(1/2)*1i)/2 + 1/2)*(-(A^3*a^2 + B^3*a^2*1i - 3*A*B^2*a^2 - A^2*B*a^2*3i)/(2*d^3))^(1/3) + log(- ((3^(1/2)*1i)
/2 - 1/2)^2*(486*d^3*(3*A*B^2*a^9 - B^3*a^9*1i + A^2*B*a^9*3i) - (243*d*(a + a*tan(c + d*x)*1i)^(1/3)*(B^2*a^8
*d^3 - 5*A^2*a^8*d^3 + A*B*a^8*d^3*2i) + 1458*a^7*d^6*((3^(1/2)*1i)/2 - 1/2)^2*(-(A^3*a^2 + B^3*a^2*1i - 3*A*B
^2*a^2 - A^2*B*a^2*3i)/(2*d^3))^(2/3))*((3^(1/2)*1i)/2 - 1/2)*(-(A^3*a^2 + B^3*a^2*1i - 3*A*B^2*a^2 - A^2*B*a^
2*3i)/(2*d^3))^(1/3))*(-(A^3*a^2 + B^3*a^2*1i - 3*A*B^2*a^2 - A^2*B*a^2*3i)/(2*d^3))^(2/3) - 243*d*(a + a*tan(
c + d*x)*1i)^(1/3)*(A^5*a^10 - A^4*B*a^10*4i + A^2*B^3*a^10*2i - 5*A^3*B^2*a^10))*((3^(1/2)*1i)/2 - 1/2)*(-(A^
3*a^2 + B^3*a^2*1i - 3*A*B^2*a^2 - A^2*B*a^2*3i)/(2*d^3))^(1/3)
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (i a \left (\tan {\left (c + d x \right )} - i\right )\right )^{\frac {2}{3}} \left (A + B \tan {\left (c + d x \right )}\right ) \cot {\left (c + d x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate(cot(d*x+c)*(a+I*a*tan(d*x+c))**(2/3)*(A+B*tan(d*x+c)),x)
[Out]
Integral((I*a*(tan(c + d*x) - I))**(2/3)*(A + B*tan(c + d*x))*cot(c + d*x), x)
________________________________________________________________________________________